// Line

function Line( x, y, lineWidth, color, stroke )
{
    this.x = x;
    this.y = y;
    this.lineWidth = lineWidth;
    this.color = color;
    this.stroke = stroke;
}

Line.prototype.draw = function (context) 
{
    context.save();
    context.translate(this.x, this.y);
    context.lineWidth = this.lineWidth;
    context.fillStyle = this.color;
    context.strokeStyle = this.stroke;
    context.beginPath();
    context.moveTo(0, 0);                       
    context.lineTo(40, 0);
    context.moveTo(50, 0);
    context.lineTo(90, 0);
    context.moveTo(100, 0);
    context.lineTo(140, 0);
    context.moveTo(150, 0);
    context.lineTo(190, 0);
    context.moveTo(200, 0);
    context.lineTo(240, 0);
    context.moveTo(250, 0);
    context.lineTo(290, 0);
    context.moveTo(300, 0);
    context.lineTo(340, 0);
    context.closePath();
    context.fill();
    context.stroke();
    context.restore();
}
